<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('logging')} > ${i18n.getMessage('search')}">
</@showTitle>

<form action="system/searchLogging.sgt" onsubmit="submitForm(this); return false;">
	<table id="dataTable" align="center" cellspacing="5" cellpadding="0">
		<tr>
			<td class="name">${i18n.getMessage('user')}:</td>
			<td>
				<select name="userId" style="width:204px">
					<option></option>
					<#list users as user>
						<option value="${user.id}">${user.fullName}</option>
					</#list>
				</select>
			</td>
		</tr>
		<tr>
			<td class="name">${i18n.getMessage('fromDate')}: </td>
			<td><input type="text" name="fromDate" value="${now?date}" style="width:200px"/><img class="calendarImg" src="images/calendar/calendar.gif" onclick="displayCalendar(document.forms[0].fromDate, '${i18n.getMessage('format.date')}', this)"/></td>
		</tr>
		<tr>
			<td class="name">${i18n.getMessage('toDate')}: </td>
			<td><input type="text" name="toDate" style="width:200px"/><img class="calendarImg" src="images/calendar/calendar.gif" onclick="displayCalendar(document.forms[0].toDate, '${i18n.getMessage('format.date')}', this)"/></td>
		</tr>
		<tr>
			<td class="name">${i18n.getMessage('action')}:</td>
			<td>
				<select name="action" style="width:204px">
					<option></option>
					<#list actions as action>
						<option value="${action}">${action!}</option>
					</#list>
				</select>
			</td>
		</tr>
		<tr>
			<td class="name" style="vertical-align:top">${i18n.getMessage('description')}:</td>
			<td><textarea name="description" style="width:350px;height:80px;"></textarea></td>
		</tr>
		<tr>
			<td class="name"></td>
			<td>
				<input type="submit" value="${i18n.getMessage('search')}" class="button_style"/> 
				<input type="reset" value="${i18n.getMessage('reset')}" class="button_style"/> 
			</td>
		</tr>
	</table>
</form>